class AddUserReferenceToPosts < ActiveRecord::Migration[5.0]
  def change
    add_reference :posts, :user, foreign_key: true, comment: 'reference to user'
  end
end
